<extend name="Public:base"/>
<block name="style">
	<link rel="stylesheet" type="text/css" href="__CSS__/grid.css">
</block>

<block name="body">
<div class="main-title location">
	<h2>编辑主题【{$theme}】</h2>
</div>

<div class="span9 typecho-edit-theme">
	<form action="{:U('save')}" id="theme" name="theme" method="post" class="update_form">
		<label for="content">{$Think.FRONT_THEME_PATH}{:C('FRONT_THEME')}/{$file|base64_decode}</label>
		<textarea class="w-100 mono" id="content" name="content">{$content}</textarea>
		<div class="controls">
			<input type="hidden" name="file" value="{$file|default=''}">
			<button target-form="update_form" class="primary ajax-post" type="submit">保存文件</button>
			<button onclick="location.href=$(this).attr('href');return false;" href="{:U('index')}">返主题列表回</button>
		</div>
	</form>
</div>
<div class="span1">
	<ul class="unstyled">
		<li><strong>模板文件</strong></li>
		<volist name="list" id="vo">
		<li><a href="{:U('edit',array('name'=>$theme, 'file'=>base64_encode($vo)))}">{$vo}</a></li>
		</volist>
	</ul>
</div>
</block>
